//
//  MachineCell.swift
//  vmes
//
//  Created by user on 2021/10/25.
//

import UIKit
import SnapKit

class MachineCell: UICollectionViewCell {
    
    let width = UIScreen.main.bounds.size.width//获取屏幕宽
    var titleLabel:UILabel?//title
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        initView()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func initView(){
        titleLabel = UILabel()
        self.backgroundColor = .green
        self.addSubview(titleLabel!)
        
        titleLabel?.snp.makeConstraints({ make in
            make.center.equalToSuperview()
        })
    }
}
